﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Update_Profit.aspx.cs" Inherits="CMS.Update_Profit" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI, Version=2009.1.311.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div style="font-size: 26px; font-weight: bold; text-align: center;">CẬP NHẬT TỶ LỆ LỢI NHUẬN</div>
    <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1">
        <fieldset>
            <legend class="text"><strong>Tỷ lệ lợi nhuận</strong></legend>
            <div>
                Phòng chơi :
        <asp:DropDownList ID="drpRoom" runat="server">
            <asp:ListItem Value="1" Text="Phòng 100"></asp:ListItem>
            <asp:ListItem Value="2" Text="Phòng 1000"></asp:ListItem>
            <asp:ListItem Value="3" Text="Phòng 10000"></asp:ListItem>
        </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
        Tỷ lệ lợi nhuận: 
        <asp:TextBox runat="server" ID="tbxUpdateProfit" Text="0"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button1" runat="server" Text="Update" OnClick="Button1_Click" /><asp:RegularExpressionValidator ID="RegularExpressionValidator1"
            ControlToValidate="tbxUpdateProfit"
            ValidationExpression="\d+"
            Display="Static"
            EnableClientScript="true"
            ErrorMessage="Chỉ nhập số"
            runat="server" />
            </div>
        </fieldset>
        <fieldset>
            <legend class="text"><strong>Tỷ lệ vào jackpot</strong></legend>
            <div>
                Phòng chơi :
        <asp:DropDownList ID="drpRoom1" runat="server">
            <asp:ListItem Value="1" Text="Phòng 100"></asp:ListItem>
            <asp:ListItem Value="2" Text="Phòng 1000"></asp:ListItem>
            <asp:ListItem Value="3" Text="Phòng 10000"></asp:ListItem>
        </asp:DropDownList>&nbsp;&nbsp;&nbsp;&nbsp;
        Tỷ lệ lợi nhuận: 
        <asp:TextBox runat="server" ID="tbxUpdateJackpot" Text="0"></asp:TextBox>&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button2" runat="server" Text="Update" OnClick="Button2_Click" /><asp:RegularExpressionValidator ID="RegularExpressionValidator2"
            ControlToValidate="tbxUpdateJackpot"
            ValidationExpression="\d+"
            Display="Static"
            EnableClientScript="true"
            ErrorMessage="Chỉ nhập số"
            runat="server" />
            </div>
        </fieldset>
        <fieldset>
            <legend class="text"><strong>Thông tin Tỷ lệ các phòng chơi:</strong></legend>
            <div>
                <asp:GridView ID="GridView1" runat="server" CellPadding="4" EnableModelValidation="True" AutoGenerateColumns="False" Width="400px" ForeColor="#333333" GridLines="None">
                    <Columns>
                        <asp:BoundField HeaderText="Phòng chơi" DataField="RoomID" />
                        <asp:BoundField HeaderText="Tỷ lệ lợi nhuận %" DataField="ProfitMoneyPer" />
                        <asp:BoundField HeaderText="Tỷ lệ vào Jackpot %" DataField="JackpotPer" />
                    </Columns>
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                </asp:GridView>
            </div>
        </fieldset>
    </telerik:RadAjaxPanel>
</asp:Content>
